﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BlackBBS.Infrastructure.TelnetProtocol
{
    /// <summary>
    ///     Event arguments for a telnet command event.
    /// </summary>
    /// 
    public class TelnetCommandEventArgs : EventArgs 
    {
        private TelnetCommand command;
        private string data;

        /// <summary>
        ///     Initializes the structure with the specified command.
        /// </summary>
        /// <param name="command">
        ///     The telnet command specific to the event.
        /// </param>
        public TelnetCommandEventArgs(TelnetCommand command, string data)
            : base()
        {
            this.command = command;
            this.data = data;
        }


        /// <summary>
        ///     The command that caused the event.
        /// </summary>
        public TelnetCommand Command
        {
            get
            {
                return this.command;
            }      
        }

        public string Data
        {
            get
            {
                return this.data;
            }
        }
    }
}
